﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LoomDataEmulator.Core;

namespace LoomDataEmulator.TestSuite.TestHelpers
{
    public class MockScheduledTask: IScheduledTask
    {
        private bool _registered;
        public bool Fired;
        public bool Disposed;

        #region IScheduledTask Members

        public System.Timers.TimersDescriptionAttribute TimersDescriptionAttribute
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public bool Registered
        {
            get { return _registered; }
            set { _registered = value; }
        }

        public void OnElapsedTime(object sender, System.Timers.ElapsedEventArgs e)
        {
            Fired = true;
        }

        #endregion

        #region IDisposable Members

        public void Dispose()
        {
            Disposed = true;
        }

        #endregion
    }
}
